<?php
/* 
* @Title:  [用户地址模型]
* @Author: {chenlei} [chenleib5@126.com]
* @Date:   2014-04-17 17:15:39
* @Last Modified by:   Administrator
* @Last Modified time: 2014-04-17 22:08:16
* @Copyright:  [hn7m.com]
*/
class UserAddressModel extends Model{
	public $table='user_address';
	/**
	 * [add_data 添加地址]
	 * @param [type] $data [description]
	 */
	public function add_data($data){
		return $this->add($data);
	}
	/**
	 * [get_address 取最后一条地址数据]
	 * @param  [type] $uid [description]
	 * @return [type]      [description]
	 */
	public function get_last_data($uid){
		return $this->where(array('qm_user_uid'=>$uid))->order('rid DESC')->find();
	}
}
?>